<include file="public@header"/>
</head>
<body>
<div class="layui-fluid js-check-wrap">
    <div class="layui-card">
        <div class="layui-card-body">
            <form method="post" class="js-ajax-form" action="{:url('listItem/settingPost')}">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="text-align:center;" width="60">是否显示</th>
                        <th style="text-align:left;">&nbsp;字段名称</th>
                    </tr>
                    </thead>
                        <tr>
                            <td align="center">
                                <div class="custom-checkbox">
                                    <input type="checkbox" id="checkall" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                                    <label for="checkall"></label>
                                </div>
                            </td>
                            <td><label for="checkall">&nbsp;全选/反选</label></td>
                        </tr>
                    <foreach name="list" item="vo">
                        <tr>
                            <td align="center">
                                <!-- <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}" id='id-{$vo.id}' <if condition="$vo.status eq 1">checked</if>> -->

                                <div class="custom-checkbox">
                                    <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" id="id-{$vo.id}"
                                       value="{$vo.id}" title="ID:{$vo.id}" <if condition="$vo.status eq 1">checked</if>>
                                    <label for="id-{$vo.id}"></label>
                                </div>
                            </td>
                            <td>
                                <label for="id-{$vo.id}">&nbsp;
                                    <empty name="vo.lang_str">
                                        {$vo.field_name}
                                    <else/>
                                        {:lang($vo.lang_str)}
                                    </empty>
                                </label>
                            </td>
                        </tr>
                    </foreach>
                </table>
                <div class="form-group" style="display:none;">
                    <input type="hidden" name="table_name" value="{$table_name}">

                    <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit" id="submit-btn">{:lang('SAVE')}</button>
                </div>
            </form>
        </div>
    </div>
</div>
<include file="theme/scripts"/>
</body>
</html>
